package com.share.simple.service;

import com.share.simple.model.dto.LoginUserDto;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;

import java.text.ParseException;

/**
 * @author:caifan
 * @since 2023/7/13
 */
public interface LoginService {

    /**
     * 登录
     * @param loginUserDto 登录用户信息
     * @return
     */
    String login(LoginUserDto loginUserDto);

    /**
     * 退出登录
     * @return
     */
    Boolean logout(String token) throws ParseException;
}
